package com.huiying.service;


import com.huiying.entity.dto.DemandDTO;
import com.huiying.entity.dto.DemandPageQueryDTO;
import com.huiying.entity.entity.Bid;
import com.huiying.entity.result.PageResult;
import com.huiying.entity.vo.DemandVO;

/**
 * @Author: lsh
 * @Date: 2024/10/29/10:54
 * @Description:
 */
public interface DemandService {

    /**
     * 新增需求单
     * @param demandDTO
     * @return: void
     */
    void add(DemandDTO demandDTO);

//    void saveLikeToMySQL();

//    Boolean Collect(Long demandId);
//
//    Boolean unCollect(Long demandId);

    PageResult pageQuery(DemandPageQueryDTO demandPageQueryDTO);

    Boolean bid(Bid bid);

    DemandVO getById(Long demandId);

//    PageResult getViewList(Integer page, Integer pageSize);

    void updateDemand(DemandDTO demandDTO);

    void deleteDemand(Long demandId);
}
